|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutility.pmUtility
public class pmUtility
A collection of static utility methods for dealing with Jama.Matrix objects.
Constructor Summary | |
---|---|
pmUtility()
|
Method Summary | |
---|---|
static double |
mean(Jama.Matrix x,
int columnToSort)
Returns the mean of a given column in a matrix. |
static double |
meanAbsoluteDeviations(Jama.Matrix x,
int column,
double compareTo)
Returns the mean absolute deviations of a column of a matrix against a number. |
static double |
median(Jama.Matrix x,
int columnToSort)
Returns the median of a given column in a matrix. |
static double |
medianAbsoluteDeviations(Jama.Matrix x,
int column,
double compareTo)
Returns the median absolute deviation of a column of a matrix against a number. |
static double |
percentile(Jama.Matrix x,
int columnToSort,
double alpha)
Compute percentile of matrix column. |
static void |
prettyPrint(Jama.Matrix x)
Pretty print Matrix |
static void |
prettyPrintVector(Jama.Matrix x)
Pretty print vector. |
static double |
standardDeviation(Jama.Matrix x,
int col)
Returns the standard deviation of a given column in a matrix. |
static java.lang.String |
stringPrettyPrint(Jama.Matrix x)
Pretty print Matrix. |
static java.lang.String |
stringPrettyPrintVector(Jama.Matrix x)
Pretty text format of a vector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public pmUtility()
Method Detail |
---|
public static double meanAbsoluteDeviations(Jama.Matrix x, int column, double compareTo)
x
- Matrix of data.column
- Index of column to be used in calculation.compareTo
- Value to compute absolute deviations against.
public static double medianAbsoluteDeviations(Jama.Matrix x, int column, double compareTo)
x
- Matrix of data.column
- Index of column to be used in calculation.compareTo
- Value to compute absolute deviation against.
public static java.lang.String stringPrettyPrintVector(Jama.Matrix x)
x
- Jama.Matrix to be formatted.
public static java.lang.String stringPrettyPrint(Jama.Matrix x)
x
- Matrix to be printed.
public static void prettyPrint(Jama.Matrix x)
x
- Matrix to pretty print.public static double percentile(Jama.Matrix x, int columnToSort, double alpha)
x
- Matrix of data.columnToSort
- Column to compute.alpha
- Percentile to compute.
public static void prettyPrintVector(Jama.Matrix x)
x
- Vector to pretty print.public static double mean(Jama.Matrix x, int columnToSort)
x
- Matrix of data.columnToSort
- Index of column to be used in the calcuation.
public static double median(Jama.Matrix x, int columnToSort)
x
- Matrix of data.columnToSort
- Index of column to be used in the calculation.
public static double standardDeviation(Jama.Matrix x, int col)
x
- Matrix of data.col
- Index of column to be used in the calculation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |